<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>公司发展</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="stylesheet" href="../../../../component/elementUI/index.css" />
    <link rel="stylesheet" href="../../../../css/index.css" />
  </head>

  <body>
    <div id="app" class="minWidth">
      <el-form :inline="true" :form="form">
        <el-form-item>
          <el-button type="primary" @click="addEnterprise"
            >添加公司发展</el-button
          >
        </el-form-item>
      </el-form>

      <el-table
        :data="tableData"
        stripe
        border
        height="calc(100vh - 140px)"
        @selection-change="handleSelectionChange"
        style="width: 100%"
      >
        <!-- <el-table-column align="center" type="selection" width="40"></el-table-column> -->
        <el-table-column
          align="center"
          label="序号"
          width="50"
          type="index"
        ></el-table-column>
        <el-table-column
          width="300"
          align="center"
          prop="Company_History_Title"
          label="公司发展标题"
        ></el-table-column>
        <el-table-column align="center" label="发布内容">
          <template v-slot="{row}">
            <div>
              <span v-html="row.Company_History_Main"></span>
            </div>
          </template>
        </el-table-column>
        <el-table-column
          width="180"
          align="center"
          prop="Company_History_Date"
          label="发布时间"
        ></el-table-column>
        <el-table-column align="center" label="操作" width="100">
          <template slot-scope="scope">
            <el-button
              v-if="scope.row.Row_Status=='0'"
              type="danger"
              size="small"
              @click="deletMember(scope.$index, scope.row)"
              >删除</el-button
            >
          </template>
        </el-table-column>
      </el-table>

      <el-pagination
        background
        v-show="total > 0"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="form.page"
        :page-sizes="[10, 20, 30, 50]"
        :page-size="form.limit"
        layout="total, sizes, prev, pager, next, jumper"
        :total="total"
        style="margin: 10px 0 0 0"
      >
      </el-pagination>
    </div>
    <script
      type="text/javascript"
      src="../../../../utils/jquery-3.6.0.min.js"
    ></script>
    <script
      type="text/javascript"
      src="../../../../utils/jquery.cookie.js"
    ></script>
    <script type="text/javascript" src="../../../../utils/vue.min.js"></script>
    <script
      type="text/javascript"
      src="../../../../component/elementUI/index.js"
    ></script>
    <script type="text/javascript" src="../../../../utils/utils.js"></script>
    <script type="text/javascript" src="./js/CompanyDevelop.js"></script>
  </body>
</html>
